import { CommandItem } from "./base";
import Insert from "../insert";

@Insert
export class CommandUseItem extends CommandItem {
    constructor() {
        super()
        this.name = "使用物品"
        this.detail = "使用[物品,$物品$,$次数$]"
        this.insert = "使用[物品,${1:物品},${2:1}]"
        this.docs = "使用数量为-1时,代表使用全部"
    }
}

@Insert
export class CommandDiscardAllItem extends CommandItem {
    constructor() {
        super()
        this.name = "丢弃全部物品"
        this.detail = "丢弃[物品,$物品$]"
        this.insert = "丢弃[物品,${1:物品}]"
        this.docs = ""
    }
}

@Insert
export class CommandDiscardItem extends CommandItem {
    constructor() {
        super()
        this.name = "丢弃物品"
        this.detail = "丢弃[物品,$物品$,$数量$]"
        this.insert = "丢弃[物品,${1:物品},${2:1}]"
        this.docs = ""
    }
}

@Insert
export class CommandMoveItem extends CommandItem {
    constructor() {
        super()
        this.name = "移动物品"
        this.detail = "移动[物品,$物品$,$数量$]"
        this.insert = "移动[物品,${1:物品},${2:1}]"
        this.docs = "将物品移动到战斗背包"
    }
}

@Insert
export class CommandMoveBattleItem extends CommandItem {
    constructor() {
        super()
        this.name = "移动战斗物品"
        this.tags.push("战斗物品")
        this.detail = "移动[战斗物品,$物品$,$数量$]"
        this.insert = "移动[战斗物品,${1:物品},${2:1}]"
        this.docs = "将战斗物品移动到背包"
    }
}